package com.yiba.vpn.repository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.yiba.vpn.domain.RouterUser;

/** 
* @author : tang 
* @createtime ：2018年2月28日 下午4:07:47 
* 
*/
public interface RouterUserRepository extends CrudRepository<RouterUser, Long>{

	@Query(value="select * from t_router_user order by id desc limit 0,1",nativeQuery=true)
	RouterUser queryLastOne();

	RouterUser findByPhone(String telephoneNum);


}
 